//
//  GetYJBL.m
//  PlayBall
//
//  Created by yanfa on 16/4/30.
//
//

#import "GetYJBL.h"

@implementation GetYJBL

-(void)main{
    JddNetDataCommunication *netDataCommunication = [[JddNetDataCommunication alloc] init];
    
    NSMutableDictionary *dictionaryRegister = [NSMutableDictionary dictionaryWithCapacity:2];
//    [dictionaryRegister setObject:userid forKey:@"userid"];
//    [dictionaryRegister setObject:_msg forKey:@"message"];
//    [dictionaryRegister setObject:_isPro forKey:@"setpro"];
    SBJsonWriter *jsonWriter = [[SBJsonWriter alloc] init];
    NSString *parameterValue = [jsonWriter stringWithObject:dictionaryRegister];
    NSString *bodyString = [JddParameterBuilder buildParameterWithParameterJson:parameterValue actionCode:@"122"];
    NSData *dataRegister = [netDataCommunication requestDataByPostBodyData:[bodyString dataUsingEncoding:NSUTF8StringEncoding]];
    [((NSObject*)self.delegate) performSelectorOnMainThread:@selector(GetYJBLResult:) withObject:dataRegister waitUntilDone:NO];
}
@end
